import request from "@/utils/request";

// import store from "@/store";

export const login = data => {
  return request({
    method: 'POST',
    url: "/mp/v1_0/authorizations",
    data
  })
}

// 封装请求用户自己信息的方法
export const getUserInfo = () => {
  return request({
    method: 'GET',
    url: '/mp/v1_0/user/profile' 
 })
}

// 获取用户频道列表
export const getUserChannels = () => {
  return request({
    method: 'GET',
    url: '/mp/v1_0/channels' 
 })
}

